package com.sz.sboot.service;

import com.sz.sboot.entity.TRoles;
import com.sz.sboot.mapper.TRolesMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RolesServiceImpl implements IRolesService {

    @Autowired
    private TRolesMapper tRolesMapper;

    @Override
    public List<TRoles> getAllRoles() {
        return tRolesMapper.selectAll();
    }
}
